/**
 * create by ck on 2016/3/18.
 */
$(document).ready(function(){
    var list = $('#List');
    list.initDataGrid(baseUrl + 'School/getDgData');
    DataGrid.onDblClickRow = function(rowIndex,rowData){
        $('#XHSys_User_iSchoolId', window.top.xhTop.getActiveFrame().document).val(rowData.iSchoolId);
        $('#XHSys_User_sSchoolName', window.top.xhTop.getActiveFrame().document).val(rowData.sSchoolName);
        window.top.xhTop.closeModal();
        //$('#XHSys_User_iSchoolId',window.top.frames["iframe"].document).val(rowData.iSchoolId);
        //$("#XHSys_User_sSchoolName",window.top.frames["iframe"].document).val(rowData.sSchoolName);
        //$(window.parent.frames["iframe"].document).find(".modal-header .close").click();//关闭父窗体弹窗
        //$(window.top.document).find(".modal-header .close").click();//关闭父窗体弹窗
    };
});